package com.wzx.user.mongo;

import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/7/20 - 11:01
 * @description sequence表
 */
@Data
@Document(collection = "msg_sequence")
public class SequenceId implements Serializable {
    private static final long serialVersionUID = 7523059264202861246L;

    @Indexed
    @Field(name = "集合名称")
    private String collName;

    @Field(name = "序列值")
    private long seqId;

}
